import React from 'react'

export default function Footer({name,age,callFn}) {
    const childFn = ()=>{
        callFn({name,age})
    }
    return (
        <div className='footer' onClick={childFn}>{name}-{age}</div>
    )
}
